import { Router } from 'express';
import * as Controller from '../api/controllers/research-group.controller';

const router = Router();

router
  .route('/')
  .get(
    Controller.getResearchGroups
  );

router
  .route('/:id')
  .get(
    Controller.getResearchGroupById
  );

router
  .route('/my/:id')
  .get(
    Controller.getResearchGroupByUserId
);

router
  .route('/')
  .post(
    Controller.addResearchGroup
  );

router
  .route('/:id')
  .put(
    Controller.updateResearchGroupById
  );

router
  .route('/:id')
  .delete(
    Controller.deleteResearchGroupById
  );

export default router;